package com.remedios.pojo;

import com.remedios.myAnnotation.MyAutoWired;
import com.remedios.myAnnotation.MyController;
import com.remedios.myAnnotation.MyValue;

@MyController
public class BeanA {
    @MyAutoWired
    BeanB beanB;

    public  void print(){
        System.out.println("回忆是一条没有归途的路");
        beanB.print();
    }

    public String getName() {
        return name;
    }

    @MyValue("${joker.name}")
    @MyAutoWired
    private String name;

    public String getDream() {
        return dream;
    }

    @MyValue("毁掉一切")
    @MyAutoWired
    private String dream;

}

